<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<jsp:useBean id="now" class="java.util.Date"></jsp:useBean>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/jquery-3.3.1.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath }/static/css/demo.css">
<link rel="stylesheet" href="${pageContext.request.contextPath }/static/css/jquery.datetimepicker.css">
	<script src="${pageContext.request.contextPath }/static/js/jquery.datetimepicker.js"></script>
	<link rel="stylesheet" href="${pageContext.request.contextPath }/static/css/ion.calendar.css">
	<script src="${pageContext.request.contextPath }/static/js/moment.min.js"></script>
	<script src="${pageContext.request.contextPath }/static/js/moment.zh-cn.js"></script>
	<script src="${pageContext.request.contextPath }/static/js/ion.calendar.min.js"></script>
	<link rel="stylesheet" href="${pageContext.request.contextPath }/static/css/demo1.css">
	<link rel="stylesheet" href="${pageContext.request.contextPath }/static/css/avgrund.css">
	<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/avgrund.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/nav.js"></script>
	
	<%-- <link rel="stylesheet" href="${pageContext.request.contextPath }/static/css/demo6.css"> --%>
	<link rel="stylesheet" href="${pageContext.request.contextPath }/static/css/demo9.css">
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/static/css/menu_sideslide.css" />
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/static/css/normalize.css" />
	<%-- <script type="text/javascript" src="${pageContext.request.contextPath }/static/css/friendcss.css"></script> --%>
	
	
	<script type="text/javascript">
		$(function(){
			
		
		$(".start_date").datetimepicker({
            lang:'ch',
            format:'Y-m-d',
            formatDate:'Y-m-d',
            timepicker:false
        });
        $(".end_date").datetimepicker({
            lang:'ch',
            format:'Y-m-d',
            formatDate:'Y-m-d',
            timepicker:false
        });
		});

        $(function(){
            $("#calendar").ionCalendar({
                lang: 'zh-cn',
                format: 'YYYY年M月D日',
                onClick: function(date){
                	var code = "<%=request.getParameter("code")%>";
                	
                	if(code==1){
                	var time=new Date(Date.parse(date.replace('年','-').replace('月','-').replace('日','')))
                    console.log(time)
                    var d=new Date(time);
                    var year=d.getFullYear();
                    var month=change(d.getMonth()+1);
                    var day=change(d.getDate());
                    var time=year+'-'+month+'-'+day;
                    
                    openDialog();
                    function change(t){
                        if(t<10){
                            return "0"+t;
                        }else{
                            return t;
                        }
                    }
                    var user="<%=request.getParameter("user")%>"
                    var param_data={
                    	'user':user,
                    	'start_date':time
                    }
                   $.ajax({
                    	type:"POST",
                        url:"${pageContext.request.contextPath }/selectSchedule.action",
                        data:{'param':JSON.stringify(param_data)},
                        dataType:"json",
                        async:false,
                        success:function(data){
                        	console.log(data)
                            if(data != ""){
           						var tbl=""
           						
           						var text3="edit_sch"
                       		 	for(var i=0;i<data.length;i++){
                       		 	var text1="${pageContext.request.contextPath }/deleteSchedule.action?id="+data[i].id
               					var text2="${pageContext.request.contextPath }/SelectOne.action?id="+data[i].id
                       			 tbl+="<p><span>主题</span>：<span>"+data[i].theme+"</span></p><p><span>开始时间</span>：<span>"+data[i].start_date+" "+data[i].start_time+"</span></p><p><span>结束时间</span>：<span>"+data[i].end_date+" "+data[i].end_time+"</span></p><p><span>人员</span>：<span>"+data[i].staff+"</span></p><p><span>说明</span>：<span>"+data[i].instruction +"</span></p>"+"<p><a href='"+text1+"'>删除</a>"+"<a href='"+text2+"' class='"+text3+"'>修改</a></p>"
                       		}  		    	
                 		     $(".detail_content").html(tbl);
                            }else{       
                            	$(".detail_content").html("您没有添加事件");
                            }
                        }
                    });
                }else{
                	alert("您还未登录！");
                }
                }
            
            });
            $(function () {
				$(".ul1").find("li").eq(0).click(function () {
					var code = "<%=request.getParameter("code")%>";
					
					
					if(code==1 ){
						location.href="main.jsp?code="+<%=request.getParameter("code")%>+"&user="+"<%=request.getParameter("user")%>";
					}
					else{
						alert("您还未登录！");
					}
					
                });
				$(".ul1").find("li").eq(1).click(function () {
					var code = "<%=request.getParameter("code")%>";
					
					if(code==1){
						location.href="../../jsp/schedule.jsp?code="+<%=request.getParameter("code")%>+"&user="+"<%=request.getParameter("user")%>";
					}
					else{
						alert("您还未登录！");
					}
					
                });
				$(".ul1").find("li").eq(2).click(function () {
					var code = "<%=request.getParameter("code")%>";
					
					if(code==1){
						location.href="../../jsp/backtime.jsp?code="+<%=request.getParameter("code")%>+"&user="+"<%=request.getParameter("user")%>";
					}
					else{
						alert("您还未登录！");
					}
					
                });

	           $("#rob").click(function () {	
					var code = "<%=request.getParameter("code")%>";
					if(code==1){
 						location.href="../../jsp/robot.jsp?code="+<%=request.getParameter("code")%>+"&user="+"<%=request.getParameter("user")%>";
					}
					else{
						alert("您还未登录！");
					} 					
                });													
				
            });
        });


	</script>
	<script type="text/javascript">

        function openDialog() {
            Avgrund.show( "#default-popup" );
        }

        function closeDialog() {
            Avgrund.hide();
        }

	</script>
	<script type="text/javascript">
	$(function () {
		$(".button_warn").click(function () {
			var code = "<%=request.getParameter("code")%>";
			
			if(code==1 ){
			$(".right_warn").animate({width:'toggle'},300);
			}
			else{
				alert("您还未登录！");
			}
        });
    });
	
	</script>
	<script type="text/javascript">
		$(function(){
			$(".input_theme").blur(function(){
				$(".formtips").remove();
				if($(this).val()==""){
	                   $(this).after("<span class='formtips'>不能为空</span>")
	               }else{
	                   return;
	               }
			});
			$(".form_submit").click(function(){
				var theme=$(".input_theme").val()
				if(theme==""){
					alert("添加失败");
				}else{
					$(this).prop("type","submit");
				}
			});
		});
	</script>
	<script type="text/javascript">
        $(document).ready(function(){
        	var code = "<%=request.getParameter("code")%>";
        	if(code==0){
        		 
                var ch22 = document.getElementById("login");
                ch22.style.visibility="visible";
        	}else if(code==1){
        		
                 
                var ch22 = document.getElementById("login");
                ch22.style.visibility="hidden";
                
              
        	}
        	$("#pt").click(function(){
        	    var name="<%=request.getParameter("user")%>";
         	    location.href="../../jsp/pingtu.jsp?code=1&user="+name;
        	   
        	});
        	
        });
    </script>
    <script type="text/javascript">
    	$(function(){
    		var next = [];
    		function show(){
 	           var mydate = new Date();
 	           var str = "" + mydate.getFullYear() + "-";
 	           str += (mydate.getMonth()+1) + "-";
 	           str += mydate.getDate();
 	           return str;
 	       }
    		var date=show();
    		
    		var user="<%=request.getParameter("user")%>";
    		var code="<%=request.getParameter("code")%>";
    		console.log(user)
   		 if(code==1){
   			 var param_data2={
   	   				 'start_date':date,
   	   		 		 'user':user
   	   		 }
   	   		 console.log(param_data2)
   	   		 $.ajax({
   				 type:"POST",
   	             url:"${pageContext.request.contextPath }/selectSchedule.action",
   	             data:{'param':JSON.stringify(param_data2)},
   	             dataType:"json",
   	             async:false,
   	             success:function(data){
   	            	var tbl=""
   	            	if(data==""){
   	            		$(".schedule").html("<span>您今日没有安排<span>");
   	            	}else{
   	            		for(var i=0;i<data.length;i++){
   	            		var text1="schedule_item";
   	              		tbl+="<div class='"+text1+"'><ul><li>"+"主题："+data[i].theme+"</li><li>"+"开始时间："+data[i].start_date+" "+data[i].start_time+"</li><li>"+"结束时间："+data[i].end_date+" "+data[i].end_time+"</li><li>"+"人员："+data[i].staff+"</li><li>"+"说明："+data[i].instruction+"</li></ul></div>"
   	            	}
   	            		
   	            		$(".schedule").html(tbl);
   	             }
   			 }
   			 });
   			 
   			var now_time = getNowTime();
   			var param_data3={
                	'user':user,
                	'now_time':now_time,
                }

   			$(".backtime").find("h1").remove();
   			$(".backtime time-item").remove();
   			$.ajax({
				type:"POST",
                url:"${pageContext.request.contextPath }/findAlltimeback.action",
                data:{'param':JSON.stringify(param_data3)},
                dataType:"json",
                async:false,
                success:function(data){
                	console.log(data)
                	if(data==""){
                		$(".backtime").html("您还没有倒计时")
                	}else{
                		 var tbl = "";
                		 
                		 for(var i=0;i<data.length;i++){
                			 var text0="time-item";
                			 var text10="day_show"
                			 var text7="hour_show";
                			 var text8="minute_show";
                			 var text9="second_show";
                			 var text11="time_all"
                			 tbl+="<div class='"+text11+"'><h1>"+data[i].event+"</h1><div class='"+text0+"'><span class='"+text10+"'>"+"0天"+"</span><strong class='"+text7+"'>"+"0天"+"</strong><strong class='"+text8+"'>"+"0时"+"</strong><strong class='"+text9+"'>"+"0秒"+"</strong></div></div>"
                			 next[i]=data[i].end_time;
                		 }
                		 $(".backtime").html(tbl); 
                	}
                }
			});
   			//console.log(next[0]);
   			
   			for(var i=0;i<next.length;i++){
   			 (function(e) {
   			var nexttime=new Date(next[i]);
   			console.log(next[i]);
   			window.setInterval(function(){
   				var currenttime=new Date();
   				var currentTime = currenttime.getTime();
   	            var nextTime = nexttime.getTime();
   	            var allTime = nextTime - currentTime;
   	            var allSecond = parseInt(allTime / 1000);
   				
   	            // 8.转化   重要
   	            var d = size(parseInt(allSecond / 3600 / 24));
   	            var h = size(parseInt(allSecond / 3600 % 24));
   	            var m = size(parseInt(allSecond / 60 % 60));
   	            var s = size(parseInt(allSecond  % 60));
   	            /* day_show = $(".day_show")
   	            day_show[0].html(d+"天"); */
   	            /* day_show.html(d+"天"); */
   	            var div = $(".time_all")
   	            $(".backtime").find(div).eq(e).find(".day_show").html(d+"天");
   	           $(".backtime").find(div).eq(e).find(".hour_show").html('<s id="h"></s>'+h+'时');
   	  	        
   	  	        $(".backtime").find(div).eq(e).find('.minute_show').html('<s></s>'+m+'分');
   	  	        $(".backtime").find(div).eq(e).find('.second_show').html('<s></s>'+s+'秒');
   			},1000);
   			 })(i);
   		}
   		 }else{
   			$(".schedule").append("<img src='../../img/bk.gif' style='width:400px;height:400px;margin-left:150px'><p style='font-size:25px;margin-left:270px'>您还未登录</p>")
   		 }
    		function size(num) {
    	        return num >= 10 ? num : '0' + num;
    	    }
    		
    		function getNowTime() {
		        var date = new Date();
		        var seperator1 = "-";//年月日分隔符
		        var seperator2 = ":";//时分秒分隔符
		        var month = date.getMonth() + 1; //月份是0~11，要加1为当前月
		        var strDate = date.getDate();
		        if (month >= 1 && month <= 9) {
		            month = "0" + month;
		        }
		        if (strDate >= 0 && strDate <= 9) {
		            strDate = "0" + strDate;
		        }
		        var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate + " " + date.getHours() + seperator2 + date.getMinutes() + seperator2 + date.getSeconds();
		        return currentdate;
		    }

    	});
    </script>
    <script type="text/javascript">
    $(function () {

		$("#showdt").click(function(){
			if($("#info").css("display")=="none"){
				var user="<%=request.getParameter("user")%>";
				
				$.ajax({        			
        			type:"GET",
        		    url:"/Schedule/findPerson.action",
        		    contentType:"application/json;charset=utf-8",  
        		    //我们使用 JSON.stringify() 方法处理json，将其转换为字符串；
        		    data:{
        		    	'user':user
        		    },
        		    dataType:"json",
        		    async:false,
        		    success:function(result){
        		   
        		    	 if(result.code==1){
        		    		
        		    		 var data=result.data;
        		    			        		    		  		    	
//         		    	 $("#da1").val(data.user);
                 		 $("#da3").val(data.name);
                 		 $("#da4").val(data.phone);
                 		 $("#da5").val(data.address);
                 		 
                 		     
        		    	 }else if(result.code==-1){
        		    		 alert("获取用户失败");
        		    	 }      		    	
        		    }        		    
        		});   
				
				$("#info").show();
				
				
			}else{
				$("#info").hide();
			}
		});
		
		$("#save").click(function(){
			
			var user="<%=request.getParameter("user") %>";
     		var name= $("#da3").val();
     		var phone= $("#da4").val();
     		var address=$("#da5").val();
     		
     		var param_data1={                				
  					'user':user,              				
  					'name':name,
    				'phone':phone,
    				'address':address
      	  }
      	  console.log(JSON.stringify(param_data1));
          
          $.ajax({        			
  			type:"GET",
  		    url:"/Schedule/updatePerson.action",
  		    contentType:"application/json;charset=utf-8",  
  		    //我们使用 JSON.stringify() 方法处理json，将其转换为字符串；
  		    data:{'param':JSON.stringify(param_data1)},
  		    dataType:"json",
  		    async:false,
  		    success:function(result){
  		    	 //var  data=JSON.parse(result);//转换成json对象
  		    	 if(result.code==1){
  		    		alert("修改成功");
  		    	 }else{
  		    		 alert("修改失败");
  		    	 }      		    	
  		    }        		    
  		}); //ajax
          
          
		});//save
		
		
		 $("#pengy").click(function(){
		  		
			 var user="<%=request.getParameter("user") %>";
		  	   
		  
		  		$.ajax({        			
		  			type:"GET",
		  		    url:"/Schedule/FindFriends.action",
		  		    contentType:"application/json;charset=utf-8",  
		  		    //我们使用 JSON.stringify() 方法处理json，将其转换为字符串；
		  		    data:{
		  		    	'user':user
		  		    },
		  		    dataType:"json",
		  		    async:false,
		  		    success:function(result){
		  		    	   	
		  		    	    if(result.code==1){
		  		    	    	
				    	    	var data=result.data;
				    	    	
				    	    	var tbl = "<table > <tr style='height: 35px'> <div class='frienddt'>"; 
				    	    	tbl+="<td class='name'>姓名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> <td class='phone'>电话</td></div></tr>";	

		             		    for(var i=0;i<data.length;i++){
		             			 
		             			tbl+="<tr style='height: 35px'>  <div class='frienddt'> "
		             			tbl+="<td class='name'>"+data[i].name+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> <td class='phone'>"+data[i].phone+"</td><td>&nbsp;&nbsp;<input type='button'  class='drop' value='删除'>"+"</td></tr>";

		             		 }
		           		     
		          		       tbl+="</table>";   		    	
		          		       $("#table_show").html(tbl);
				    	    }
		  		    }        		    
		  		});   //ajax
		  		
		  		$(".drop").click(function(){
		  			var phone=$(this).parent().siblings(".phone").html();
		  			//alert(phone);
		  			var send="<%=request.getParameter("user")%>";
		  			
		  			param_data={
		  				'send':send,
		  				'phone':phone
		  			}
		  		    $.ajax({        			
		    			type:"GET",
		    		    url:"/Schedule/deleteFriends2.action",
		    		    contentType:"application/json;charset=utf-8",  
		    		    //我们使用 JSON.stringify() 方法处理json，将其转换为字符串；
		    		    data:{
		    		    	'param':JSON.stringify(param_data)
		    		    },
		    		    dataType:"json",
		    		    async:false,
		    		    success:function(result){
		    		    	if(result.code==1){
	        		    		//alert("删除成功");
	        		    	}
		    		    	
		    		     
		    		    }  //success	
		    		 });   //ajax
		  			
		  		});//drop
		  		
		  		$(".drop").click(function(){
		  			var phone=$(this).parent().siblings(".phone").html();
		  			//alert(phone);
		  			var user="<%=request.getParameter("user")%>";
		  			param_data={
		  				'user':user,
		  				'phone':phone
		  			}
		  		    $.ajax({        			
		    			type:"GET",
		    		    url:"/Schedule/deleteFriends.action",
		    		    contentType:"application/json;charset=utf-8",  
		    		    //我们使用 JSON.stringify() 方法处理json，将其转换为字符串；
		    		    data:{
		    		    	'param':JSON.stringify(param_data)
		    		    },
		    		    dataType:"json",
		    		    async:false,
		    		    success:function(result){
		    		    	if(result.code==1){
	        		    		alert("删除成功");
	        		    	}
		    		    	
		    		     
		    		    }  //success	
		    		 });   //ajax
		  			
		  		});//drop
		  		
		  		
		  		
		 	
		    });//pengy
		    
		    $("#lookfriends").click(function(){
	    		//var content="514";
	    		var user="<%=request.getParameter("user") %>";
	    		var content=$("#find").val();
	            var renum = /^[0-9]+.?[0-9]*$/; //判断字符串是否为数字 
	    		
	    		if (renum.test(content)) {
	    			
	    		   param_data={
	    				'user':user,
	    				'phone':content
	    		   };
	    		   
	    		  $.ajax({        			
	    			type:"GET",
	    		    url:"/Schedule/findByphone.action",
	    		    contentType:"application/json;charset=utf-8",  
	    		    //我们使用 JSON.stringify() 方法处理json，将其转换为字符串；
	    		    data:{
	    		    	'param':JSON.stringify(param_data)
	    		    },
	    		    dataType:"json",
	    		    async:false,
	    		    success:function(result){
	    		    	if(result.code==1){
        		    		var data=result.data;
        		    		var tbl = "<table > <tr style='height: 35px'> <div class='frienddt'>"; 
			    	    	tbl+="<td class='name'>姓名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> <td class='phone'>电话</td></div></tr>";	
             			 
	             			tbl+="<tr style='height: 35px'>  <div class='frienddt'> "
	             			tbl+="<td class='name'>"+data.name+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> <td class='phone'>"+data.phone+"</td></tr>";

	           		     
	          		       tbl+="</table>";   		    	
	          		       $("#table_show").html(tbl);
        		    	}else{
        		    		$("#table_show").html("<p style='margin-left: 10px;font-size:1.2em;color:white;'>搜索不到该用户</p>");
        		    	}
	    		    	
	    		     
	    		    }  //success	
	    		 });   //ajax
	    		
	    		}//if为数字根据手机查找
	    		else{
	    			param_data={
	        				'user':user,
	        				'name':content
	        		   };
	        		   
	        		  $.ajax({        			
	        			type:"GET",
	        		    url:"/Schedule/findByname.action",
	        		    contentType:"application/json;charset=utf-8",  
	        		    //我们使用 JSON.stringify() 方法处理json，将其转换为字符串；
	        		    data:{
	        		    	'param':JSON.stringify(param_data)
	        		    },
	        		    dataType:"json",
	        		    async:false,
	        		    success:function(result){
	        		    	if(result.code==1){
		    		    		var data=result.data;
		    		    		var tbl = "<table > <tr style='height: 35px'> <div class='frienddt'>"; 
				    	    	tbl+="<td class='name'>姓名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> <td class='phone'>电话</td></div></tr>";	

		             		    for(var i=0;i<data.length;i++){
		             			 
		             			tbl+="<tr style='height: 35px'>  <div class='frienddt'> "
		             			tbl+="<td class='name'>"+data[i].name+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> <td class='phone'>"+data[i].phone+"</td></tr>";
		     
		    		    	   }
		             		   tbl+="</table>";   		    	
		            		   $("#table_show").html(tbl);  	
		    		      }else{
		    		    	    $("#table_show").html("<p style='margin-left: 10px;font-size:1.2em;color:white;'>搜索不到该用户</p>"); 
		    		    	  }
	        		    	  	
	        		    }   //success     		    
	        		 });   //ajax
	    		}//else 根据姓名查找
	    		
	    	});//lookfriends
	    	
	    	
	    	$("#search").click(function(){
	    		var phone=$("#find2").val();
	    		
	    		$.ajax({        			
	    			type:"GET",
	    		    url:"/Schedule/addByphone.action",
	    		    contentType:"application/json;charset=utf-8",  
	    		    //我们使用 JSON.stringify() 方法处理json，将其转换为字符串；
	    		    data:{
	    		    	'phone':phone
	    		    },
	    		    dataType:"json",
	    		    async:false,
	    		    success:function(result){
	    		    	if(result.code==1){
	    		    		var data=result.data;
	    		    		var tbl="<p style='margin-left: 0px'>你可能要找的是</p>";
	    		    	
	    		    		tbl+= data.name+"&nbsp;&nbsp;&nbsp;&nbsp;" +data.phone+"&nbsp;&nbsp;" ;
	            		     
	            		    
	  		    	    	tbl+="<input style='width: 50px;margin-top:15px;' type='button' value='添加' class='maybebtn' id='add'>"
	  		    	        
	            		     $("#findcontent").html(tbl);
	  		    	    	
	  		    	    	$("#add").click(function(){
	  		  	    		
	  		    	    		var user=data.user;
	  		  	    	        var send="<%=request.getParameter("user") %>";
	  		  	    	    var msg="请求加你为好友";
	  		  	    	    var param_data={
	  		  						  'user':user,
	  		  						  'send':send,
	  		  						  'msg':msg
	  		  				  };
	  		  	    	   
	  		  	    		$.ajax({        			
	  		  	    			type:"GET",
	  		  	    		    url:"/Schedule/AddMessage.action",
	  		  	    		    contentType:"application/json;charset=utf-8",  
	  		  	    		    //我们使用 JSON.stringify() 方法处理json，将其转换为字符串；
	  		  	    		    data:{
	  		  	    		    	'param':JSON.stringify(param_data)
	  		  	    		    },
	  		  	    		    dataType:"json",
	  		  	    		    async:false,
	  		  	    		    success:function(data){
	  		  	    		    	if(data.code==1){
	  		  	    		    		  alert("请求发送成功");	    
	  		  	    		    	}
	  		  	    		    	  	
	  		  	    		    }        		    
	  		  	    		});   //ajax
	  		  	    		
	  		  	   	
	  		  	      });//add
	            		     
	    		    	}else{
	    		    		 $("#findcontent").html("<p style='margin-left: 10px;font-size:1.2em;color:white;'>搜索不到该用户</p>");
	    		    	}
	    		    	  	
	    		    }        		    
	    		});   //ajax
	    		
	    	});//search
	    	
	    	
		    
		    
	});
    </script>
    <script type="text/javascript">
    function changeStatue() {
		$("#warn_content").css("display","none");
		$("#right_warn2").css("display","table-row");
	}
	
	function add() {
		$("#right_warn2").css("display","none");
		$("#warn_content").css("display","table-row");
	}
    </script>
<title>时间安排</title>
</head>
<body >
<div class="container">
			<div class="menu-wrap">
				<p class="pp">
					当前用户:  
					<span style="font-size: 20px" onclick="" id="showdt">&nbsp;&nbsp;&nbsp;<%=request.getParameter("user") %></span>
				</p>

                    <div id="info"  style="height: 150px;display: none;" >
<!-- 				        <span>用户名：<input type="text" id="da1" style="margin-left:15px"></span> -->
<!-- 				        <br> -->
				        <span><font  color="#FFFFFF">&nbsp;密&nbsp;&nbsp;&nbsp;码:&nbsp;&nbsp;&nbsp;</font><input type="password" id="da2" style="margin-left:15px" value="******"></span>
				        <br>
				        <span><font  color="#FFFFFF">&nbsp;姓&nbsp;&nbsp;&nbsp;名:&nbsp;&nbsp;&nbsp;</font>：<input type="text" id="da3" style="margin-left:15px"></span>
				        <br>
				        <span><font  color="#FFFFFF">&nbsp;手&nbsp;&nbsp;&nbsp;机:&nbsp;&nbsp;&nbsp;</font><input type="text" id="da4" style="margin-left:15px"></span>
				        <br>
				        <span><font  color="#FFFFFF">&nbsp;邮&nbsp;&nbsp;&nbsp;箱:&nbsp;&nbsp;&nbsp;</font><input type="text" id="da5" style="margin-left:15px"></span>
				        <br>
				        
				        
				       <button id="save" style="color:black;margin-left:90px;margin-top:10px">保存</button>

				     </div>
				
				<div  class="out">
					
					<a id="loginout" data-target="" href="main.jsp?code=0"><i class="fa fa-fw fa-newspaper-o"></i><span>退出</span></a>
				</div>
				<nav class="menu">
					<div class="icon-list">
						
					</div>
				</nav>
				<button class="close-button" id="close-button">Close Menu</button>
			</div>
			<button class="menu-button" id="open-button">Open Menu</button>
<div class="header" style="background: #373a47">
	
	<div class="header_nav">
		<ul class="ul1">
			<li >首页</li>
			<li id="schedu" >日程安排
			</li>
			<li >倒计时
			</li>
			 
			<li>益智小游戏
                <ul class="ul2">
                   
                    <li id="pt"><font class="ping" style="color: #fff">拼图</font></li>
                    <li><a href="../../jsp/lianliankan.jsp?code=<%=request.getParameter("code") %>&user=<%=request.getParameter("user") %>" style="margin-left:3px;color:#fff">连连看</a></li>                
                </ul>
            </li>
            <li id="rob" >智能机器人</li>

        </ul>
    </div>
    <ul class="register">
        
         <!-- <li id="user"></li>  -->
        <li id="message"><a href="../../jsp/message.jsp?code=<%=request.getParameter("code") %>&user=<%=request.getParameter("user") %>">消息</a></li>
        <!-- <li id="exit"><a href="main.jsp?code=0">退出</a></li> -->
        <li id="login"><a href="../../jsp/login.jsp">登录</a></li>
    </ul>
</div>
<div class="content" style="background: url(../../img/bk.jpg);background-size:cover;">
	<div class="content_left">
		<div class="left_weather">
			<iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=55"  width="255" height="294" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
		</div>
		<div class="jq22">
			<div id="calendar"></div>
		</div>
	</div>
	<div class="content_right">
		<div class="right_form">
			<div class="schedule">
				 
			</div>
			<div class="backtime"></div>
		</div>
	</div>
	<div class="div_warn">
			
				<div class="right_warn" style="display:none">
					
					<div id="warn_content" class="warn_content" style="display: ">
					<h2>好友列表</h2>
						<div class="friendlist" style="height: 400px;overflow: auto;">
							<input id="find" class="find" name="find" type="text"
								style="height: 22px" placeholder="按姓名、电话查找">&nbsp;
								
							<input type="button" value="" class="button1" id="lookfriends"
								style="background: url(../../img/search.png) no-repeat;">
								
							<div class="info_title" id="table_show">

							</div>
						</div>
						<div class="addnewdiv" style="margin-top: 30px">
							<input type="button" value="新增联系人" class="addnew" id="addnew" onclick="changeStatue()">
						</div>
					</div>
				
				<div id="right_warn2" class="right_warn2" style="display: none">
					<h2 style="margin-left: 10px">添加好友</h2>
					<div class="friendlist" style="margin-top: 10px ;margin-left: 10px"">
					
						<input id="find2" class="find" name="find" type="text"
							style="height: 22px" placeholder="按电话查找">&nbsp;
							
							<input type="button" value="" class="button1" id="search"
								style="background: url(../../img/search.png) no-repeat;">

					</div>
					
					<p style="margin-left: 10px" id="findcontent">
					
					</p>
					<input type="button" class="addnew" value='返回' style="margin-left:30px;margin-top:400px;" id='return' onclick='add()'>
				</div>
				</div> 
			





				<!-- 添加好友列表 -->
				
				
				
				<div class="button_warn" id="pengy">
					<p>好</p>
					<p>友</p>
				</div>
			</div>

</div>
<div class="avgrund-cover"></div>
<aside id="default-popup" class="avgrund-popup">
	<h2>今日安排</h2>
	<div class="detail_content" style="height: 196px;overflow: auto" >
		
	</div>
	<button onClick="javascript:closeDialog();" style="float: right;margin-top:5px">Close</button>

</aside>
</div>	
    <script src="${pageContext.request.contextPath }/static/js/classie.js"></script>
	<script src="${pageContext.request.contextPath }/static/js/main.js"></script>
	
</body>
</html>